package ru.reaperoq.plugins

import io.ktor.server.application.*
import io.ktor.server.routing.*
import ru.reaperoq.routing.componentsRouting
import ru.reaperoq.routing.computersRouting
import ru.reaperoq.routing.locationsRouting
import ru.reaperoq.routing.usersRouting

fun Application.configureRouting(onGenerateToken: (Int) -> String) {
    routing {
        usersRouting(onGenerateToken)
        componentsRouting()
        computersRouting()
        locationsRouting()
    }
}
